

<!-- content -->
<div class="wind_alldivs1">
  <div class="auto">
      <div class="subnav">
        <ul class="crumbs">
            <li>我的位置：</li>
            <li><a href="{$site_url}">{$site_name} </a> </li>
            <li><a href="{$Categorys[$catid]['url']}">&nbsp; &gt; {$Categorys[$catid]['catname']} </a></li>
            <li>&nbsp; &gt; {$title} </li>
            <div class="clear"></div>
        </ul>
 
      </div>
      <!-- 左边 -->
 {if $title}     
      <div class="wind_SPdivL" style="border-radius:0;">
        <div style="width:94%;margin:auto;margin-top:20px;">
            <span class="windSpan4">{$title}</span>
            <ul class="wind_xgtnyUL1" style="margin-left:0;">
              <li style="width:200px;margin-right:25px;">发布时间：{$createtime|toDate=###,'Y-m-d H:i:s'}</li>
              <li style="width:150px;"><img src="../Public/images/windimg30.png" />&nbsp;{$hits}</li>
                    <div class="hm cl" style="float:right; margin-left:50px;">
                   
                    <div id="bdshare" class="bdshare_t bds_tools_24 get-codes-bdshare">
                    <span  style="text-indent:0;padding-left: 32px; float:left;width: auto;font-size: 16px;font-family: '微软雅黑';">分享到 </span>
                    <a class="bds_qzone" title="分享到QQ空间" href="#"></a>
                    <a class="bds_tsina" title="分享到新浪微博" href="#"></a>
                    <a class="bds_tqq" title="分享到腾讯微博" href="#"></a>
                   
                    <span class="bds_more" style="text-indent:0;padding-left: 32px;width: auto;font-size: 18px;font-family: '微软雅黑';"></span>
                    </div>
                    <script type="text/javascript" id="bdshare_js" data="type=tools" src="http://bdimg.share.baidu.com/static/js/bds_s_v2.js?cdnversion=406586"></script>
                    </div>
              <li class="wind_public2">
                <a href=""></a>
                <a href=""></a>
                <a href=""></a>
              </li>
              <div style="clear:both;"></div>
            </ul>
            <div class="wind_glcontent">
              {$content}
            </div>
          </div>
            <div class="wind_pinluns1">
                  
   <?php 
         $field='jg_comment.id,jg_comment.content,jg_comment.createtime,jg_user.id as userid,jg_user.avatar,jg_user.username';
         $where='jg_Comment.`conid`='.$id.' and contype="News"';
         $reluts=M('Comment')->field($field)->where($where)->join('jg_user ON jg_comment.userid = jg_user.id')->limit('50')->select();
          foreach($reluts as $key=>$val){
    ?>
                <ul class="wind_xgtnyUL3" style="width:95%">
                  <li>
                     <a href="index.php?m=User&a=index&id={$val['userid']}"><img class="wind_header" src="{$val['avatar']}" /></a>
                  </li>
                  <li>
                    <ul class="wind_xgtnyUL4" style="width:86%;">
                      <li style="width:100%;">
                        <span style="font-size:18px;line-height:42px;"><a href="index.php?m=User&a=index&id={$val['userid']}">{$val['username']}</a></span>
                        <span style="color:#999;">{$val.createtime|toDate=###,'Y-m-d H:i:s'}说：</span>
                      </li>
                        <p>{$val['content']}</p>
                    </ul>
                  </li>
                  <div style="clear:both;"></div>
                </ul>
                
                <?php }?>
                
                <ul class="wind_xgtnyUL3" style="border:none;width:95%;">
                  <li>
                    <img class="wind_header" src="../Public/images/windhead1.png" />
                  </li>
                  <li>
                    
                    
                   <form name="myform" id="myform" action="{:URL('User-Index/comment_post')}" method="post" onSubmit="return logina();">
                    <input type="hidden" name="conid" value="{$id}"/> 
                    <input type="hidden" name="contype" value="News"/>
                    <input type="hidden"  name="moduleid" value="{$moduleid}" />
                    <input type="hidden"  name="catid" value="{$catid}" />
                    <input type="hidden"  name="title" value="{$title}" /
                    <input type="hidden"  name="lang" value="{$langid}" />
                    <input type="hidden"  name="url" value="<?php echo $_SERVER['REQUEST_URI'];?>" /> 
                    
                    <ul class="wind_xgtnyUL4" style="width:86%;">
                      <li style="width:100%;">
                        <textarea class="wind_textarea" placeholder="添加评论~~" name="content" style="width:727px;"></textarea>
                      </li>
                    </ul>
                  </li>
                  <div style="clear:both;"></div>
                </ul>
                <input type="submit" value="添加评论" class="wind_xgtnyULpinl" style="margin-bottom:30px;" />
                </form> 
                <div style="clear:both;"></div>
                <!-- end -->
          </div>
      </div>
    {else}
    已被删除
    {/if}  
      <!-- 右边 -->
      <div class="wind_SPdivR" style="border-radius:0;min-height:365px;">
        <div class="wind_SPdivRson1" style="overflow:hidden;">
         
            <span class="windSpan5">热门{$Categorys['14']['catname']}<!--<img src="../Public/images/windimg33.png" />--></span>
            <YP:list  name="News" order="id desc"  limit="1" where="pos_hot=1" catid="14"  id="r">
              <a href="{$r['url']}"><img width="100%" src="{$r['pic']}" /></a>
            </YP:list>
            <ul class="wind_SPdivRson1ULs2">
             
             <YP:list  name="News" order="id desc"   limit="5" where="pos_hot=1" catid="14"  id="r">
                <a href="{$r['url']}"><li>{$r['title']|str_cut=###,35}</li></a>
            </YP:list>
            
            </ul>
        </div>
        <div style="clear:both;border-top:solid 25px #EEE;margin-top:20px;"></div>
        <div class="wind_SPdivRson1" style="overflow:hidden;">
            <span class="windSpan5">热门{$Categorys['15']['catname']}<!--<img src="../Public/images/windimg33.png" />--></span>
            
            
            <YP:list  name="News" order="id desc"  limit="4" where="pos_hot=1" catid="15"  id="r">
              
          
            <div class="wind_SPdivRson11">
              <a href="{$r['url']}"><img width="100%" src="{$r['pic']}" /></a>
              <ul>
                <li style="font-size:14px;line-height:30px;"><a href="{$r['url']}">{$r['title']}</a></li>
                <li class="wind_SPdivRson11li">
                  <img src="../Public/images/windimg38.png" />&nbsp;{$r['createtime']|toDate=###,'Y-m-d H:i'}
                  <span style="float:right;">
                    <img src="../Public/images/windimg39.png" />&nbsp;{$r['hits']}
                  </span>
                </li>
              </ul>
            </div>
          </YP:list>
            
        </div>
      </div>
      <div style="clear:both;"></div>
          <!-- end -->
  </div>
</div>
<div style="clear:both;"></div>
<script type="text/javascript">
$("#windspan1").click(function(){
  $(this).attr("class", "wind_newscontentlis1"); 
   $("#windspan2").attr("class", "wind_newscontentlis2"); 
   $("#windspan22").hide();
   $("#windspan11").show();
});
$("#windspan2").click(function(){
 $(this).attr("class", "wind_newscontentlis1"); 
   $("#windspan1").attr("class", "wind_newscontentlis2");
   $("#windspan11").hide();
   $("#windspan22").show();
});
  //搜索
  $('#idState2').mouseover(function(){
    $(this).children('li').css('display','block');
  });
  $('#idState2').mouseout(function(){
    $(this).children('li').css('display','none');
  });
          //点击地址 搜索
        function getva(vals){
         
            $('#text2').html(vals);
        }
        $('#idState2 li').click(function(){
          // alert($(this).children('a').attr('title'));
          $('#date2').attr('value',$(this).children('a').attr('title'));
        })
</script>
                                                                                                                                                